#include <amxmodx>
#include <cstrike>

#define PLUGIN_NAME "Show Team Money"
#define PLUGIN_AUTHOR "Rekans & HUNTERok"
#define PLUGIN_VERSION "1.2"

public plugin_init()
{
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
	register_event("HLTV", "StartRound", "a", "1=0", "2=0")  
}

public StartRound() 
{
        set_task(0.1, "ShowMoney")
}

public ShowMoney()
{
	new Players[32]
	new playerCount, i, player
	get_players(Players, playerCount, "a")
	
	for (i=0; i<playerCount; i++) {			
		player = Players[i] 
		if (is_user_alive(player) && !is_user_bot(player) && !is_user_hltv(player)) {		
			client_cmd(player, "say_team %d", cs_get_user_money(player));		
		}
	}			
}